;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        "planA": {
            "name": "百万交通意外综合险",
            "company": "天安财险",
            "days": "1y",
            "people_count": "1",
            "train_death": "200000",
            "bicycle_death": "30000",
            "passenger_death": "100000",
            "airplane_death": "1000000",
            "price": "50.00"

        },
        "planB": {
            "name": "百万交通意外综合险",
            "company": "天安财险",
            "days": "1y",
            "people_count": "1",
            "train_death": "500000",
            "bicycle_death": "60000",
            "passenger_death": "200000",
            "airplane_death": "3000000",
            "price": "100.00"

        },
        "planC": {
            "name": "百万交通意外综合险",
            "company": "天安财险",
            "days": "1y",
            "people_count": "1",
            "train_death": "800000",
            "bicycle_death": "100000",
            "passenger_death": "300000",
            "airplane_death": "5000000",
            "price": "150.00"

        }

    }
    for( k in plan ){
        data = plan[k];
        console.log( data );
        mysql.insertData( data )
    }
    mysql.close();

}
